import i18n from '@/i18n'

export function setTabBarText() {
  const t = i18n.global.t
  try {
    uni.setTabBarItem({
      index: 0,
      text: t('tabBar.home')
    })
    uni.setTabBarItem({
      index: 1,
      text: t('tabBar.my')
    })
  } catch (e) {
    // 忽略错误，防止非tabBar页面报错
    // console.warn('setTabBarItem error:', e)
  }
} 